<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" isELIgnored="false" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>用户登录</title>
	<link rel="stylesheet" type="text/css" href="css/login.css"/>
    <script type="text/javascript" src="js/login.js"></script>
    <script type="text/javascript" src="js/imagecode.js"></script>
</head>
<body background="image/backimage.jpg">
		<%!Integer yournumber=new Integer(0); %>
	<% 
	if(session.isNew()){
		Integer number=(Integer)application.getAttribute("Count");
		if(number==null){
			number=new Integer(1);
		}else{
			number =new Integer(number.intValue()+1);
		}
		application.setAttribute("Count", number);
	
	}%>
		<%!Integer yournumber1=new Integer(0); %>
	<% 
	if(!session.isNew()){
			yournumber1 =new Integer(yournumber1.intValue()+1);
	}else{
		yournumber1=new Integer(1);
	}
	session.setAttribute("number", yournumber1);
	%>
	<div id="login_frame">
    <p id="image_logo"><img src="image/item1.png"></p>
    <form method="post" action="welcome.jsp">
    	<p> ${message }</p>
        <p><label class="label_input">用户名</label><input type="text" id="username" class="text_field" name="username" /></p>
        <p><label class="label_input">密码</label><input type="password" id="password" class="text_field" name="passwd" /></p>
        <p><input type="text"  placeholder="验证码" name="code"> <img id="code" alt="刷新图片" src="Image" onclick="refreshCode()" /></p>
        <div id="login_control">
            <input type="submit" id="btn_login" value="登录" />
            <a href="RegisterServlet" id="left" >注册</a>
            <p><a id="forget_pwd" href="forget_pwd.html">忘记密码？</a></p>
        </div>
    </form>
</div>
</body>
</html>